package com.cndw.kungfu.vo;

import java.util.HashMap;

/**
 * 聊天的vo
 * 
 * @author fantadust [9677889@qq.com]
 * @date 2011-6-9 下午02:40:03
 */
public class ChatVO extends HashMap<String, Object> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6831187472350453647L;

	public ChatVO() {

	}

	public void setPlayerId(long playerId) {
		put("a", playerId);
	}

	public void setPlayerName(String playerName) {
		put("b", playerName);
	}

	public void setSceneName(String sceneName) {
		put("c", sceneName);
	}

	public void setType(int type) {
		put("t", type);
	}

	public void setMessage(String message) {
		put("m", message);
	}

	public void setReceiveId(long receiveId) {
		put("r", receiveId);
	}

	public void setColor(int color) {
		put("s", color);
	}
	
	public void setColorName(int color){
		put("ss", color);
	}

	public void setVipLevel(int vipLevel) {
		if (vipLevel > 0) {
			put("v", vipLevel);
		}
	}

	public void setKnightLevel(int knightLevel) {
		if (knightLevel > 0) {
			put("k", knightLevel);
		}
	}
	
	public void setOpenKey(int openKey){
		if (openKey != 0 ) {
			put("o", openKey);
		}
	}

	public void setParm(Object parm) {
		put("p", parm);		
	}
	
	public void setVocationId(int vocationId) {
		put("x", vocationId);
	}


}
